<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">
    <style>
        .borderLine {
            border-radius: 4px;
            border: 2px solid #DDDDDD;
            padding: 2px;
            margin-top: 100px;
            background-color: rgba(161, 255, 10, 0.09);
        }

        #footer {
            padding: 50px;
        }
    </style>
    <title>Admin | Login</title>
</head>

<body>
<div class="container borderLine">
    <div class="row">
        <div class="col-md-4"></div>
        <h1 class="col-md-4">系统登录</h1>
    </div>
    <div class="row">
        <div class="col-md-4"></div>
        <div class="col-md-4">
            <form th:action="@{login}" method="post">
                <div class="form-group">
                    <label for="account"></label>
                    <input id="account" name="account" class="form-control" placeholder="请输入账号" required>
                </div>
                <div class="form-group">
                    <label for="password"></label>
                    <input type="password" id="password" name="password" class="form-control" placeholder="请输入密码"
                           required>
                </div>
                <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                <button type="submit" class="btn btn-primary active" style="margin-top: 10px;">登录</button>
            </form>
        </div>
    </div>
    <div class="row" id="footer">
        <div class="col-md-4"></div>
        <small class="col-md-4">Web app framework base on Bootstrap3 &copy; 2019</small>
    </div>
</div>

<!-- Mainly scripts -->
<script th:src="@{js/jquery-3.4.1.min.js}"></script>
<script th:src="@{js/bootstrap.min.js}"></script>

</body>

</html>
